FROM cmp-openjdk:8

# init script
RUN mkdir -p /etc/my_init.d/
COPY my_init.d/ /etc/my_init.d/
RUN chmod +x /etc/my_init.d/*

# env
ENV JAVA_OPTS -server -Xms1g -Xmx1g 
ENV CMP_APP_PROFILE dev
ENV CMP_APP_NAME td-data-exchange-server

# apps
RUN mkdir -p /usr/local/apps/
COPY apps/ /usr/local/apps/
